body {
  background-color: rgba(238, 238, 238);
}

a {
  text-decoration: none;
  color: black;
}
a:hover {
  text-decoration: none;
  color: black;

}
ul,
ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}
// 开始css
.row .log {
  width: 100%;
  height: 200px;
  line-height: 200px;
  background-color: skyblue;
  a {
    display: block;
    color: white;
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
  }
}

header {
  padding: 0 !important;
  padding-left: 5px !important;
  padding-top: 5px !important;
  height: 100%;
  background-color: #eee;
  position: fixed;
}
article {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.nav {
  background-color: #eee;
  ul {
    list-style: none;
    padding: 0;
    margin: 0;
    li {
      margin: 0;
      padding: 0;
      a {
        display: block;
        height: 53px;
        line-height: 53px;
        padding-left: 30px;
        font-size: 16px;
      }
      a:hover {
        background-color: white;
        color: #333;
      }
      a:before {
        vertical-align: middle;
        padding-right: 5px;
      }
    }
  }
}

.news {
  li {
    width: 25%;
    height: 133px;
    float: left;
    padding: 5px;
    a {
      display: block;
      width: 100%;
      height: 100%;
      position: relative;
      img {
        width: 100%;
        height: 100%;
      }
      p {
        position: absolute;
        left: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        font-size: 12px;
        color: white;
        width: 100%;
        height: 40px;
        margin-bottom: 0;
        padding: 5px 10px;
      }
    }
  }
}
.news li:nth-child(1) {
  width: 50%;
  height: 266px;
  padding-right: 10px;
}
.news li:nth-child(1) p {
  line-height: 41px;
  font-size: 14px;
  padding: 0 10px;
}
.title-bottom {
  border-bottom: 3px solid red;
  border-radius: 5px;
  width: 110px;
  padding: 3px;
  margin-left: 10px;
  text-align: center;
  margin-top: 5px !important;
}
.hot-recommend {
  height: 250px;
  width: 100%;
  background-color: white;
  padding: 2px 5px;
  margin-top: 5px;
  ul li {
    width: 25%;
    float: left;
    padding: 5px;
    a {
      width: 100%;
      height: 120px;
      img {
        width: 100%;
        height: 120px;
      }
      p {
        color: black;
        text-align: left;
        line-height: 30px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
    }
  }
}

.publish {
  margin-top: 10px;
  border-top: 1px solid #ccc;
  padding-right: 10px;

  .row {
    border-bottom: 1px solid #ccc;
    position: relative;
    padding: 5px 10px;
  }
  .artic-img {
    height: 160px;
    padding: 10px 0;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translate(0, -50%);
    img {
      height: 100%;
      width: 100%;
    }
  }
}
aside {
  padding-top: 5px;
}
.asd img {
  width: 100%;
}
.hot {
  display: block;
  border: 1px solid #ccc;
  padding: 0 20px 20px;
}

.random-recommend {
  background-color: white;
  padding: 5px;
  margin-top: 15px;
  p {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .row {
    width: 100%;
    margin: 0;
  }
  .recomm-artic {
    padding: 10px;
    h4 {
      color: black;
      line-height: 30px;
    }
  }
  .recomm-img {
    height: 120px;
    padding: 10px;
    img {
      width: 100%;
      height: 100%;
    }
  }
}
.swiper-container {
  height: 100%;
}

// 文章详情页的css
.artic-detail {
  width: 100%;
  background-color: white;
  padding: 5px;
  margin-bottom: 20px;
  .artic-con {
    text-align: center;
    padding: 10px 5px;
    p {
      text-align: left;
      font-size: 16px;
      line-height: 30px;
      text-indent: 2em;
    }
    img {
      width: 50%;
      margin-bottom: 20px;

    }
  }
  .comment {
    .text {
      width: 100%;
    }
    ul {
      width: 100%;
      border: 1px solid #ccc;
      border-radius: 10px;
      margin-top: 50px;
      li {
        border-bottom: 1px solid #dcc;
      }
      p {
        width: 100%;
        font-size: 16px;
        padding: 5px;
        padding-top: 15px;
        line-height: 30px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
      .time {
        // float: right;
        text-align: right;
        font-size: 12px;
        padding: 5px;
      }
    }
  }
}
// 文章列表页
article {
  background-color: white;
  padding: 5px;
}

.artic-list {
  background-color: white;
  width: 100%;
  padding: 5px;
  margin-bottom: 20px;
  .row {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .contain {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .artic-img {
    padding: 10px 5px;
    // height: 250px;
    // width: 100%;
    img {
      width: 100%;
    }
  }
}

// 开始媒体查询设置各种屏幕适配
// 小屏,不超过992px时候的状态
@media screen and (max-width: 992px) {
  .publish {
    padding: 0 10px;
  }
  .nav ul li {
    width: 25%;
    float: left;
  }
}
// 超小屏幕,最大不超过768px
@media screen and (max-width: 768px) {
  .nav ul li a {
    font-size: 14px;
  }

  .news ul li {
    width: 50%;
    height: 200px;
  }
  .news ul li:nth-child(1) {
    width: 100%;
    height: 300px !important;
  }
  .publish {
    padding-left: 10px;
    h3 {
      font-size: 16px !important;
    }
  }
}
